package com.jinbooks.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinbooks.entity.marketing.MarketingCampaign;
import org.apache.ibatis.annotations.Param;

/**
 * 营销活动Mapper接口
 */
public interface MarketingCampaignMapper extends BaseMapper<MarketingCampaign> {
    
    /**
     * 分页查询营销活动
     *
     * @param page 分页对象
     * @param marketingCampaign 查询条件
     * @return IPage<MarketingCampaign> 分页结果
     */
    IPage<MarketingCampaign> selectCampaignPage(Page<MarketingCampaign> page, @Param("campaign") MarketingCampaign marketingCampaign);
}